package com.woniu.common.entity;

import java.io.Serializable;

/**
 * tb_jp_malfunction
 * @author 
 */
public class TbJpMalfunction implements Serializable {
    private Long id;

    /**
     * 故障类型
     */
    private Integer type;

    /**
     * 故障描述
     */
    private String describes;

    /**
     * 故障报告人ID(工作人员ID)
     */
    private Long bgrid;

    /**
     * 故障报告用户ID
     */
    private Long userid;

    /**
     * 医院ID
     */
    private Integer hospitalid;

    /**
     * 故障标题
     */
    private String title;

    /**
     * 科室ID
     */
    private Integer departid;

    /**
     * 床位ID
     */
    private Integer bedid;

    /**
     * 故障来源 0 医院对接人 1科室对接人
     */
    private Integer froms;

    /**
     * 申报人手机号
     */
    private String phone;

    /**
     * 1.已备案、2.修复中、3.已修复、4.无法修复
     */
    private Integer statue;

    /**
     * 故障备案时间
     */
    private String time;

    /**
     * 订单id
     */
    private Integer rentid;

    private static final long serialVersionUID = 1L;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getDescribes() {
        return describes;
    }

    public void setDescribes(String describes) {
        this.describes = describes;
    }

    public Long getBgrid() {
        return bgrid;
    }

    public void setBgrid(Long bgrid) {
        this.bgrid = bgrid;
    }

    public Long getUserid() {
        return userid;
    }

    public void setUserid(Long userid) {
        this.userid = userid;
    }

    public Integer getHospitalid() {
        return hospitalid;
    }

    public void setHospitalid(Integer hospitalid) {
        this.hospitalid = hospitalid;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public Integer getDepartid() {
        return departid;
    }

    public void setDepartid(Integer departid) {
        this.departid = departid;
    }

    public Integer getBedid() {
        return bedid;
    }

    public void setBedid(Integer bedid) {
        this.bedid = bedid;
    }

    public Integer getFroms() {
        return froms;
    }

    public void setFroms(Integer froms) {
        this.froms = froms;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public Integer getStatue() {
        return statue;
    }

    public void setStatue(Integer statue) {
        this.statue = statue;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public Integer getRentid() {
        return rentid;
    }

    public void setRentid(Integer rentid) {
        this.rentid = rentid;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        TbJpMalfunction other = (TbJpMalfunction) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getType() == null ? other.getType() == null : this.getType().equals(other.getType()))
            && (this.getDescribes() == null ? other.getDescribes() == null : this.getDescribes().equals(other.getDescribes()))
            && (this.getBgrid() == null ? other.getBgrid() == null : this.getBgrid().equals(other.getBgrid()))
            && (this.getUserid() == null ? other.getUserid() == null : this.getUserid().equals(other.getUserid()))
            && (this.getHospitalid() == null ? other.getHospitalid() == null : this.getHospitalid().equals(other.getHospitalid()))
            && (this.getTitle() == null ? other.getTitle() == null : this.getTitle().equals(other.getTitle()))
            && (this.getDepartid() == null ? other.getDepartid() == null : this.getDepartid().equals(other.getDepartid()))
            && (this.getBedid() == null ? other.getBedid() == null : this.getBedid().equals(other.getBedid()))
            && (this.getFroms() == null ? other.getFroms() == null : this.getFroms().equals(other.getFroms()))
            && (this.getPhone() == null ? other.getPhone() == null : this.getPhone().equals(other.getPhone()))
            && (this.getStatue() == null ? other.getStatue() == null : this.getStatue().equals(other.getStatue()))
            && (this.getTime() == null ? other.getTime() == null : this.getTime().equals(other.getTime()))
            && (this.getRentid() == null ? other.getRentid() == null : this.getRentid().equals(other.getRentid()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getType() == null) ? 0 : getType().hashCode());
        result = prime * result + ((getDescribes() == null) ? 0 : getDescribes().hashCode());
        result = prime * result + ((getBgrid() == null) ? 0 : getBgrid().hashCode());
        result = prime * result + ((getUserid() == null) ? 0 : getUserid().hashCode());
        result = prime * result + ((getHospitalid() == null) ? 0 : getHospitalid().hashCode());
        result = prime * result + ((getTitle() == null) ? 0 : getTitle().hashCode());
        result = prime * result + ((getDepartid() == null) ? 0 : getDepartid().hashCode());
        result = prime * result + ((getBedid() == null) ? 0 : getBedid().hashCode());
        result = prime * result + ((getFroms() == null) ? 0 : getFroms().hashCode());
        result = prime * result + ((getPhone() == null) ? 0 : getPhone().hashCode());
        result = prime * result + ((getStatue() == null) ? 0 : getStatue().hashCode());
        result = prime * result + ((getTime() == null) ? 0 : getTime().hashCode());
        result = prime * result + ((getRentid() == null) ? 0 : getRentid().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", type=").append(type);
        sb.append(", describes=").append(describes);
        sb.append(", bgrid=").append(bgrid);
        sb.append(", userid=").append(userid);
        sb.append(", hospitalid=").append(hospitalid);
        sb.append(", title=").append(title);
        sb.append(", departid=").append(departid);
        sb.append(", bedid=").append(bedid);
        sb.append(", froms=").append(froms);
        sb.append(", phone=").append(phone);
        sb.append(", statue=").append(statue);
        sb.append(", time=").append(time);
        sb.append(", rentid=").append(rentid);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}